package com.xuelang.pipeline.domain.pipeline.service.imp;

import com.xuelang.pipeline.domain.pipeline.TriggerSetting;
import com.xuelang.pipeline.domain.pipeline.repository.TriggerSettingRepository;
import com.xuelang.pipeline.domain.pipeline.service.TriggerSettingDomainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>触发配置域服务接口实现类</p>
 *
 * @author : yixin.lys
 * @date : 2024-06-12 11:44
 **/
@Service
public class TriggerSettingDomainServiceImpl implements TriggerSettingDomainService {

    @Autowired
    private TriggerSettingRepository repository;

    @Override
    public TriggerSetting queryByPipelineCode(String pipelineCode) {
        return repository.queryByPipelineCode(pipelineCode);
    }

    @Override
    public void add(TriggerSetting triggerSetting) {
        repository.add(triggerSetting);
    }

    @Override
    public void update(TriggerSetting triggerSetting) {
        repository.update(triggerSetting);
    }

    @Override
    public void removeByIds(List<String> idList) {
        repository.removeByIds(idList);
    }

    @Override
    public void removeByCodes(List<String> codeList) {
        repository.removeByCodes(codeList);
    }
}
